import request from '@/network/request';

// /cart/addCart  购物车添加接口 goodsId number openId
function getAddCart(data) {
  return request({
    method: 'post',
    url: '/cart/addCart',
    data
  })
}

// /cart/cartList 购物车列表接口  openId

function getCartList(data) {
  return request({
    url: '/cart/cartList',
    data
  })
}

//http://{{host}}/bufan/cart/deleteAction  删除商品接口 id

function getDeleteAction(data) {
  return request({
    url: '/cart/deleteAction',
    data
  })
}

export {
  getAddCart,
  getCartList,
  getDeleteAction
}